package com.situ.allaia.dao;
import com.situ.allaia.model.User;
import com.situ.allaia.model.UserSearchBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {

    List<User> findAll(UserSearchBean usb);

    User findByUsername(String username);

    int save(User user);

    User findById(Integer id);

    int update(User user);

    int deleteByIds(Integer[] ids);
    User selectByPrimaryKey(Long id);
}
